import store from "@/store"

export let globalMixin: any = {
    mounted() {
        console.log(this.$options)
        if(this.$options.name){
            store.commit('addPage', this)
        }
    },
    unmounted() {
        // 销毁
        store.commit("destroyPage");
    },
}
